extends "../guanghui-3/guanghui-3.gd"


var baseId = ""
var upText1 = "装甲空母回血系数+2%"
var upText2 = "空中防护系数+10%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<亡语><限定>死后立即满血复活，并永久提高100点血上限(若由亡语触发则只+10)", "快速抢修")

var isSurvive = false
func _onBattleStart():
	._onBattleStart()
	isSurvive = false

func deathWord():
	.deathWord()
	if not isDeath:
		attEx.maxHp += 10
		upAtt()

func _onDeath(atkInfo):
	._onDeath(atkInfo)
	if not isSurvive and isDeath:
		isSurvive = true
		isDeath = false
		attEx.maxHp += 100
		upAtt()
		healCha(self, att.maxHp)

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 0.06
	if upgraded == 2:
		p3 = 0.25